package org.grow.support.data;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author: xwg
 * @CreateDate: 2022/2/11
 */
// processor
//    会让 properties类有提示
//   spring-configuration-metadata.json
@ConfigurationProperties(prefix = "spring.redis")
public class SimpleRedisDs {

    /**
     * redis host;
     */
    private String host = "localhost";
    /**
     * redis database;
     */
    private Integer database = 0;
    /**
     * redis password;
     */
    private String password = "123456";

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getDatabase() {
        return database;
    }

    public void setDatabase(Integer database) {
        this.database = database;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
